package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.MainWindow;

/** 
 * Redirect the user to the main page when click on the return button
 * @author Marie Morin
 *
 */
public class ReturnController implements ActionListener {
	
	private MainWindow w;
	
	public ReturnController(MainWindow w){
		
		this.w = w;

		
		
		
	}

	/**
	 *  This function is called when the user click on the button return on the modification page of a contact
	 */
	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		this.w.setLayoutNull();
		
	}

}
